<link rel="stylesheet" type="text/css" href="css/page.css"/>
<script type="text/javascript" src="js/Calendar.js"></script>
<style>
.disredtab{ width:100%; text-align:center; margin:20px 0;}
.disredtab thead{ border:1px solid #DDEEFB; background:#F3FAFF;}
.disredtab th{ text-align:center; height:30px; line-height:30px;}
.disredtab td{ padding:8px 0; line-height:18px; border-bottom:1px solid #DDD; text-align:center;}
.disredtab td.txtlf{ text-align:left; padding-left:15px;}
.disredtab td.add{ color:#090;}
.disredtab td.redu{ color:#F00;}
.disredtab tfoot td.txtrig{ text-align:right;}
.disredtab tfoot td{ font-weight:bold;}
.disredtab td.lm{ color:#45637F; font-weight:bold;}
.search_zjl{margin-top:15px;color:#666;line-height:35px; padding-left:15px;}
.time{ height:18px; line-height:18px; padding:2px 4px;background: url("images/rili.png") no-repeat scroll right center white;border: 1px solid #7F9DB9; padding-right:20px; width:90px;}
.zjlbtn{width:81px;height:30px;border:0;background:url(../images/search.png) no-repeat;cursor:pointer; margin-left:30px;}
.zjlbtn:hover{ background-position:left bottom;}
.btn {width:81px;height:30px;border:0;background: url("images/daochu.png") no-repeat right top;cursor:pointer; margin-left:30px;cursor:pointer;}
</style>

<div class="r_content">
    <h3 class="mc_title">
        <span class="mctit_1"><span class="mctit_2">分销商资金记录</span></span>
        <span class=""><a href="lmoney.html" class="">成员资金查看</a></span>
    </h3>
    <div class="search_zjl">
    	<form>
			<input type="hidden" name="act" id="act"/>
        	<b>时间查询：</b>
        	<span><input type="text" class="time" name="op" id="begintime" onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$op?>" /> </span> 到 
            <span><input type="text" class="time" name="ed" id="endDate" onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$ed?>"/></span>
            <span><input type="submit" value="" class="zjlbtn" /></span>
			<span><input type="button" id="excel" class="btn" value=""></span>
        </form>
    </div>
    <table class="disredtab">
        <thead>
            <th>分销商名称</th>
            <th>增加金额</th>
            <th>减少金额</th>
            <th>操作后金额</th>
            <th>操作时间</th>
            <th>操作员</th>
        </thead>
        <tbody>
        <?foreach($list as $v){?>
            <tr>
                <td class="txtlf"><?=$v['dname']?></td>
                <td class="add"><?=$v['add']?></td>
                <td class="redu"><?=$v['redu']?></td>
                <td class="lm"><?=$v['lmoney']/100?></td>
                <td><?=$v['rectime']?></td>
                <td><?=$oper[$v['opid']]?></td>
            </tr>
        <?}?>
    	</tbody>
        <tfoot>
        	<td class="txtrig">总金额：</td>
        	<td class="add"><?=$all/100?></td>
        	<td class="redu"></td>
        	<td class="lm"></td>
        	<td></td>
        	<td></td>
        </tfoot>
    </table>
	<?page($total,$currentPage,$pageSize);?>
</div>
<script>
$(document).ready(function(){
	$("#excel").click(function(){
		$("#act").val("Export");
		$("form").submit();
	});
});
</script>